<%-- 
    Document   : respostaCurso
    Created on : 21/06/2012, 15:03:38
    Author     : mayara.oliveira2
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <jsp:useBean id="curso" scope="page" class="org.neg.curso.Curso" />
        <jsp:setProperty name="curso" property="nome"/>
        <jsp:setProperty name="curso" property="cargaHoraria"/>
        <jsp:setProperty name="curso" property="preRequisitos"/>
        <jsp:setProperty name="curso" property="certificacao"/>
        <jsp:setProperty name="curso" property="maxAlunos"/>
        <jsp:setProperty name="curso" property="descricao"/>
        <h1>Oi!</h1>
        <jsp:useBean id="connection" scope="session" class="org.conexao.ConnectionHandler" />
        <%
            curso.novoCurso(curso.getNome(), curso.getCargaHoraria(), curso.getPreRequisitos(), curso.getCertificacao(), curso.getMaxAlunos(), curso.getDescricao());
        %>
    </body>
</html>
